﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ElingOA6_Admin_DSJCJ.Areas.Admin.Models
{
    /// <summary>
    /// 信息发布视图实体类
    /// </summary>
    public class DocumentPubEditViewModel
    {
        /// <summary>
        /// 信息实体类
        /// </summary>
        public Model.Document DocumentModel
        {
            private set;
            get;
        }
        /// <summary>
        /// 信息类别实体类
        /// </summary>
        public Model.DocCls DocClsModel
        {
            private set;
            get;
        }
        /// <summary>
        /// 文档查看权限列表（控制到信息）
        /// </summary>
        public List<Model.documentAuthority> documentAuthorityList
        {
            private set;
            get;
        }
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="docClsModel"></param>
        /// <param name="docClsAuthorityList"></param>
        public DocumentPubEditViewModel(Model.Document documentModel, Model.DocCls docClsModel, List<Model.documentAuthority> documentAuthorityList)
        {
            this.DocumentModel = documentModel;
            this.DocClsModel = docClsModel;
            this.documentAuthorityList = documentAuthorityList;
        }
    }
}